/**
 * @Author:Star
 * @Date:Created in 14:05 2019/5/12
 * @Description:
 */
//具体肯德基厨房工厂
public class KFCFoodFactory implements KFCFactoryImpl {
    @Override
    //制作汉堡包
    public Hamburg createHamburg(int kind, int num) {
        if(1 == kind){
            return new BigMacHam(num);//巨无霸
        }else if(2 == kind){
            return new SpicyChickenHam(num);//香辣鸡腿堡
        }else if(3 == kind){
            return new OrleansChickenHam(num);//奥尔良鸡腿堡
        }else{
            return null;
        }
    }

    //制作冰激凌
    @Override
    public IceCream createIceCream(int kind, int num) {
        if(1 == kind){
            return new strawberrySundae(num);//草莓圣代
        }else if(2 == kind){
            return new blueberrySundae(num);//蓝莓圣代
        }else if(3 == kind){
            return new iceCreamCone(num);//原味甜筒
        }else{
            return null;
        }
    }

    //制作饮料
    @Override
    public Beverage createBeverage(int kind, int num) {
        if(1 == kind){
            return new CocaCola(num);//可口可乐
        }else if(2 == kind){
            return new juice(num);//九珍果汁
        }else{
            return null;
        }
    }

    //制作炸鸡
    @Override
    public Chicken createChicken(int kind, int num) {
        if(1 == kind){
            return new chickenNugget(num);//上校鸡块
        }else if(2 == kind){
            return new chickenRolls(num);//鸡肉卷
        }else if(3 == kind){
            return new popcornChicken(num);//鸡米花
        }else{
            return null;
        }
    }
}